package com.itheima.dao;

import com.itheima.domain.Role;
import com.itheima.domain.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoDao {
     UserInfo findUserInfoByName(String username) ;

    List<UserInfo> findAll();

    UserInfo findById(String id);

    int save(UserInfo userInfo);

    List<Role> findUserNotRole(String id);

    int addRoleToUser(@Param("userId") String userId, @Param("id") String id);
}
